package com.start.pay.core.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.start.pay.core.entity.StartPayOrderEntity;
import com.start.pay.core.mappers.StartPayOrderMapper;
import com.start.pay.core.service.StartPayOrderService;
import org.springframework.stereotype.Service;

@Service
public class StartPayOrderServiceImpl extends ServiceImpl<StartPayOrderMapper, StartPayOrderEntity> implements StartPayOrderService {


    /**
     * 根据订单查询订单信息
     *
     * @param orderNo
     * @param wrapper
     * @return
     */
    @Override
    public StartPayOrderEntity getStartPayOrderByOrderNo(String orderNo, LambdaQueryWrapper<StartPayOrderEntity> wrapper) {
        wrapper.eq(StartPayOrderEntity::getOrderNo, orderNo);
        return getOne(wrapper);
    }
}
